
public class Meals {
	private int numOfPeople;
	private double costPerPerson;
	private double totalCost;
	private double costPerPersonNoDessert;
	public Meals(int numOfPeople, double costPerPerson, double dessertCost) {
		this.numOfPeople = numOfPeople;
		this.costPerPerson = costPerPerson + dessertCost;
		this.costPerPersonNoDessert = costPerPerson;
	}
	public int getNumOfPeople() {
		return numOfPeople;
	}
	public void setNumOfPeople(int numOfPeople) {
		this.numOfPeople = numOfPeople;
	}
	public double getCost() {
		return costPerPerson;
	}
	public void setCost(double costPerPerson) {
		this.costPerPerson = costPerPerson;
	}
	public double getTotal() {
		totalCost = numOfPeople * costPerPerson;
		return totalCost;
	}	
	public double getTotalNoDessert() {
		totalCost = numOfPeople * costPerPersonNoDessert;
		return totalCost;
	}	
}
